

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" href="/img/favicon.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="Blue~u~u~u">
  <meta name="author" content="Blue~u~u~u">
  <meta name="keywords" content="">
  <meta name="description" content="docker基本命令 启动docker 1234systemctl start docker #启动dockersystemctl stop docker  #停止dockersystemctl restart docker #重启dockersystemctl status docker #查看docker状态  docker自启动 1systemctl enable docker #设置doc">
<meta property="og:type" content="article">
<meta property="og:title" content="Docker常用命令笔记">
<meta property="og:url" content="http://www.slx.blue/2022/01/23/docker-command/index.html">
<meta property="og:site_name" content="Blue~u~u~u~u">
<meta property="og:description" content="docker基本命令 启动docker 1234systemctl start docker #启动dockersystemctl stop docker  #停止dockersystemctl restart docker #重启dockersystemctl status docker #查看docker状态  docker自启动 1systemctl enable docker #设置doc">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2022-01-23T11:28:16.000Z">
<meta property="article:modified_time" content="2022-01-24T03:43:43.830Z">
<meta property="article:author" content="Blue~u~u~u">
<meta property="article:tag" content="docker">
<meta name="twitter:card" content="summary_large_image">
  
  <title>Docker常用命令笔记 - Blue~u~u~u~u</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4/github-markdown.min.css" />
  <link  rel="stylesheet" href="/lib/hint/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"www.slx.blue","root":"/","version":"1.8.12","typing":{"enable":true,"typeSpeed":180,"cursorChar":"_","loop":true},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname"}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.4.0"></head>

<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css"/>
<script src="/live2d-widget/autoload.js"></script>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>Blue~u~u</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/links/">
                <i class="iconfont icon-link-fill"></i>
                友链
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/images/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="Docker常用命令笔记">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2022-01-23 19:28" pubdate>
        2022年1月23日 晚上
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      2.9k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      9 分钟
    </span>
  

  
  
    
      <!-- 不蒜子统计文章PV -->
      <span id="busuanzi_container_page_pv" style="display: none">
        <i class="iconfont icon-eye" aria-hidden="true"></i>
        <span id="busuanzi_value_page_pv"></span> 次
      </span>
    
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">Docker常用命令笔记</h1>
            
              <p class="note note-info">
                
                  本文最后更新于：4 个月前
                
              </p>
            
            <div class="markdown-body">
              <h3 id="docker基本命令"><a href="#docker基本命令" class="headerlink" title="docker基本命令"></a>docker基本命令</h3><ol>
<li><p>启动docker</p>
<figure class="highlight dockerfile"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs dockerfile">systemctl start docker <span class="hljs-comment">#启动docker</span><br>systemctl stop docker  <span class="hljs-comment">#停止docker</span><br>systemctl restart docker <span class="hljs-comment">#重启docker</span><br>systemctl status docker <span class="hljs-comment">#查看docker状态 </span><br></code></pre></td></tr></table></figure></li>
<li><p>docker自启动</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs mysql">systemctl enable docker #设置docker开启自启动<br></code></pre></td></tr></table></figure></li>
</ol>
<h3 id="docker镜像命令"><a href="#docker镜像命令" class="headerlink" title="docker镜像命令"></a>docker镜像命令</h3><ol>
<li><p>镜像</p>
<blockquote>
<ol>
<li>docker images 查看本机上的镜像  镜像也可以分层</li>
<li>docker images xxx  搜索本机镜像 </li>
<li>docker images pull 镜像名   下载</li>
</ol>
</blockquote>
</li>
<li><p><code>docker run -it --name mycentos centos:TAG +各种参数</code></p>
<blockquote>
<p>run是从镜像中启动一个新的容器，需要配置一些参数<br><code>docker run -it centos</code>  新从镜像中创建运行一个容器 </p>
</blockquote>
</li>
<li><p><code>docker ps</code> 列出当前正在运行的容器  <code>docker ps -a</code> 列出所有的容器</p>
</li>
<li><p>删除镜像</p>
<ul>
<li>删除单个： <code>docker rmi -f + 镜像id</code> </li>
<li>删除多个:  <code>docker rmi -f 镜像名：TAG 镜像名2：TAG</code></li>
<li>删除全部:  <code>docker rmi -f $(docker images -qa)</code>  #危</li>
</ul>
</li>
<li><p>docker system df   #查看镜像/容器/数据卷所占的空间</p>
</li>
</ol>
<h3 id="docker容器命令"><a href="#docker容器命令" class="headerlink" title="docker容器命令"></a>docker容器命令</h3><ol>
<li><p>创建容器</p>
<figure class="highlight dockerfile"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs dockerfile">docker <span class="hljs-keyword">run</span><span class="bash"> [OPTIONS] IMAGE [COMMAND] [ARG...]   </span><br><br>--name=<span class="hljs-string">&quot;容器新名字&quot;</span>       <span class="hljs-comment">#为容器指定一个名称；</span><br>-d: <span class="hljs-comment">#后台运行容器并返回容器ID，也即启动守护式容器(后台运行)；</span><br>	后台守护，比如redis mysql  后台启动放着就行了 不需要前台交互<br>	不然容易被关闭 不让进去<br>-i：<span class="hljs-comment">#以交互模式运行容器，通常与 -t 同时使用；</span><br>-t：<span class="hljs-comment">#为容器重新分配一个伪输入终端，通常与 -i 同时使用；</span><br>	<span class="hljs-comment">#也即启动交互式容器(前台有伪终端，等待交互)；</span><br>	可以在挂着 可以和前台交互<br>-P: <span class="hljs-comment">#随机端口映射，大写P</span><br>-p: <span class="hljs-comment">#指定端口映射，小写p</span><br></code></pre></td></tr></table></figure></li>
<li><p>查看容器</p>
<blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs mysql">&gt;docker ps  #查看正在运行的容器<br>&gt;docker ps -a #查看所有容器<br><br>&gt;-a  # 显示所有的容器，包括未运行的<br>&gt;-f  # 根据条件过滤显示的内容<br>&gt;-l  # 显示最近创建的容器<br>&gt;-n  # 列出最近创建的n个容器<br>&gt;-q  # 静默模式，只显示容器编号<br>&gt;-s  # 显示总的文件大小<br>&gt;--format    # 指定返回值的模板文件<br>&gt;--no-trunc  # 不截断输出<br></code></pre></td></tr></table></figure>

</blockquote>
</li>
<li><p>启动容器</p>
<figure class="highlight dockerfile"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs dockerfile"><span class="hljs-comment">#start是从已经存在的容器中重新开始启动，不需要配置参数，只需要名称就行</span><br>docker start +容器ID或者容器名称<br><br><span class="hljs-comment">#重启容器或者重新进入容器、</span><br>docker restart +容器ID或者容器名称 重启容器<br></code></pre></td></tr></table></figure></li>
<li><p>设置容器自启动</p>
<ul>
<li>创建容器时设置</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs mysql">docker run -d --restart=always --name 设置容器名 使用的镜像<br>#（上面命令  --name后面两个参数根据实际情况自行修改）<br># Docker 容器的重启策略如下：<br> --restart具体参数值详细信息：<br>       no　　　　　　　 # 默认策略,容器退出时不重启容器；<br>       on-failure　　  # 在容器非正常退出时（退出状态非0）才重新启动容器；<br>       on-failure:3    # 在容器非正常退出时重启容器，最多重启3次；<br>       always　　　　  # 无论退出状态是如何，都重启容器；<br>       unless-stopped  # 在容器退出时总是重启容器，不考虑在 Docker 守护进程启动时就已经停止了的容器。<br></code></pre></td></tr></table></figure>

<ul>
<li>修改已经有的容器</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs mysql">#如果创建时未指定 --restart=always，可通过update 命令设置<br>docker update --restart=always 容器ID(或者容器名)<br></code></pre></td></tr></table></figure>

<p>注意事项：</p>
<ul>
<li>用docker自带的–link把多个容器链接在一起，有重启或升级的问题，比如很多容器都依赖于 db 这个容器，然后db容器重启了，重启时docker分配的<code>ip</code>会变，导致其他依赖于db的容器都要重启。</li>
<li>–link 链接的容器还有启动顺序的问题， 需要先启动db容器再启动其他依赖于db的容器， 这样导致 –link和–restart=always 不能一起用， 如果一起用会发现宿主机重启了， docker容器并没有全部重启，因为这时候docker容器是同时被启动的，并不知道启动顺序。 </li>
<li>最后决定不用 –link 链接容器了。<br>Docker容器开机自动启动（在宿主机重启后或者Docker服务重启后）</li>
</ul>
</li>
<li><p>退出容器 </p>
<ol>
<li><code>exit 容器停止并且退出</code></li>
<li><code>Ctrl+P + Q 容器不停止退出  先Ctrl + P 再Q</code></li>
</ol>
<blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs mysql">&gt;docker stop +容器ID  #温柔关闭<br>&gt;docker kill +容器Id    #直接杀死<br></code></pre></td></tr></table></figure></blockquote>
</li>
<li><p>查看容器信息(内部细节)</p>
<blockquote>
<p>docker inspect  容器名称或ID   </p>
</blockquote>
</li>
<li><p>删除容器</p>
<blockquote>
<p><code>docker rm</code> +容器id 删除未运行的<br><code>docker rm -f</code> 容器id 强行删除容器<br><code>docker rm -f $(docker ps -qa)</code> 删除所有容器<br><code>docker ps -a -q |xargs docker rm</code> 一次性删除多个容器，参数传给args</p>
</blockquote>
</li>
<li><p>进入容器</p>
<blockquote>
<p>docker attach 容器ID  进入正在运行的容器<br>attach早已过时了，因为是公用一个终端，当这个终端被一个容器所占用的时候，这个时候attach 其他容器，就会造成堵塞。</p>
<p>所以尽量使用exec   </p>
<p><code>docker exec -it containerID /bin/bash</code><br>docker exec 容器ID<br>docker exec 容器ID  + 进入的命令  比如ls -l等等 可以远程直接开命令<br>exec 是在容器中打开新的终端，并且可以启动新的进程 功能更强大一些</p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs awk">&gt;attach 直接进入容器启动命令的终端，不会启动新的进程<br>&gt;用<span class="hljs-keyword">exit</span>退出，会导致容器的停止。<br><br>&gt;exec 是在容器中打开新的终端，并且可以启动新的进程<br>&gt;用<span class="hljs-keyword">exit</span>退出，不会导致容器的停止。<br></code></pre></td></tr></table></figure>

</blockquote>
</li>
<li><p><strong>容器重要命令</strong></p>
<ul>
<li>​    启动守护式容器 docker run -d 容器名</li>
<li>​    查看容器日志 docker logs -t 容器id    -t是加上时间 -f打印最新日志  -tail 最后几条、</li>
<li>​    docker attach 容器ID  进入正在运行的容器 </li>
<li>​    docker exec 容器ID  + 进入的命令  比如ls -l等等 可以远程直接开命令</li>
<li>​    exec 是在容器中打开新的终端，并且可以启动新的进程 功能更强大一些</li>
<li>​    从容器内部拷贝文件到主机上 ：<code>docker cp</code> 容器ID:容器内路径 目的主机路径</li>
</ul>
</li>
<li><p>容器备份</p>
<figure class="highlight dockerfile"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs dockerfile"><span class="hljs-comment">#export 导出容器的内容留作为一个tar归档文件[对应import命令]</span><br>docker export 容器ID &gt; 文件名.tar    <span class="hljs-comment">#默认导出到当前目录 可以自己选择路径</span><br><br><span class="hljs-comment">#import 从tar包中的内容创建一个新的文件系统再导入为镜像[对应export]  注意-两旁要有空格</span><br>cat 文件名.tar | docker import - 镜像用户/镜像名:镜像版本号<br></code></pre></td></tr></table></figure></li>
<li><p>docker提交容器到镜像</p>
<figure class="highlight apache"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs apache"><span class="hljs-attribute">docker</span> commit - m=<span class="hljs-string">&quot;add vim cmd&quot;</span> - a=<span class="hljs-string">&quot;author&quot;</span> 容器ID 新的容器名称:版本号<br><span class="hljs-attribute">docker</span> commit -m=<span class="hljs-string">&quot;我的mysql&quot;</span> -a=<span class="hljs-string">&quot;龙龙&quot;</span> ce<span class="hljs-number">33</span>ab<span class="hljs-number">3</span>a<span class="hljs-number">9</span>e<span class="hljs-number">8</span>a lll/mysql<span class="hljs-number">5</span>.<span class="hljs-number">7</span>:<span class="hljs-number">1</span>.<span class="hljs-number">0</span><br></code></pre></td></tr></table></figure></li>
</ol>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/docker/">docker</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/docker/">docker</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客目前大部分文章都是参考尚硅谷或者马士兵教育的学习资料！<a href="http://www.atguigu.com/" rel="nofollow noopener"官网地址！</a> 
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2022/01/23/docker-containerVolume/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">Docker容器卷学习笔记</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2022/01/20/MybatisPlus01/">
                        <span class="hidden-mobile">Mybatis-plus快速入门及增删改查（一）</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
              <!-- Comments -->
              <article class="comments" id="comments" lazyload>
                
                  
                
                

              </article>
            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">

  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
	<!--《添加网站运行时间 -->
<br/>

<span id="timeDate">载入天数...</span><span id="times">载入时分秒...</span>
<script>
var now = new Date(); 

function createtime() {
    //此处修改你的建站时间或者网站上线时间
    var grt = new Date('11/02/2021 21:39:00');
    now.setTime(now.getTime() + 250);
    days = (now - grt) / 1000 / 60 / 60 / 24;

    dnum = Math.floor(days);
    hours = (now - grt) / 1000 / 60 / 60 - (24 * dnum);
    hnum = Math.floor(hours);
    if (String(hnum).length == 1) {
        hnum = "0" + hnum;
    }
    minutes = (now - grt) / 1000 / 60 - (24 * 60 * dnum) - (60 * hnum);
    mnum = Math.floor(minutes);
    if (String(mnum).length == 1) {
        mnum = "0" + mnum;
    }
    seconds = (now - grt) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
    snum = Math.round(seconds);
    if (String(snum).length == 1) {
        snum = "0" + snum;
    }
    document.getElementById("timeDate").innerHTML = " 本站已各种夹缝中安全运行 " + dnum + " 天 ";
    document.getElementById("times").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒";
}
setInterval("createtime()", 250);
</script>

<!-- 添加网站运行时间》-->
  </div>
  
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
        <!-- 不蒜子统计UV -->
        <span id="busuanzi_container_site_uv" style="display: none">
            总访客数 
            <span id="busuanzi_value_site_uv"></span>
             人
          </span>
      
    
  </div>


  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" ></script>
  



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>




  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


</body>
</html>
